Replace fundamental-mode-hook with change-major-mode-after-body-hook.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 03:01:40 +0000 (11:01 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 03:01:40 +0000 (11:01 +0800)
commitdf30c8add60b45053dca8fcd5b442a4963810cc3
treeef178c8a37f3131c12350d954fff17d813f7134b
parent0843b430300fd4f3992b9029a1e7e0ab8bcb04b3
Replace fundamental-mode-hook with change-major-mode-after-body-hook.

* lisp/simple.el (fundamental-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode): Revert 2010-04-28
change introducing fundamental-mode-hook.

* lisp/subr.el (change-major-mode-after-body-hook): New hook.
(run-mode-hooks): Run it.

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Use
change-major-mode-before-body-hook.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/derived.el
lisp/emacs-lisp/easy-mmode.el
lisp/simple.el
lisp/subr.el